using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Framework.Library.Utilities;
using Framework.Module.CMS.Library.Zones;

namespace Framework.Module.CMS.Web.HomePage
{
    public partial class ZoneImages : System.Web.UI.UserControl
    {
        protected string lblImages = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            int ID = ConvertUtility.ToInt32(HttpContext.Current.Request["catid"]);
            ZoneInfo info = ZoneController.GetZone(ID);
            if (info != null)
            {
                if (info.Zone_Images != string.Empty)
                {
                    lblImages = "<img src='" + info.Zone_Images + "' alt='" + info.Zone_Name + "' border='0' />";
                }
                else
                    lblImages = "";
            }
            else
            {
                lblImages = "";
            }
        }
    }
}